package com.ruoyi.voucher.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 凭证字对象 financial_voucher_word
 *
 * @author ruoyi
 * @date 2025-02-23
 */
@TableName("financial_voucher_word")
public class VoucherWord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 凭证字id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 凭证字 */
    @Excel(name = "凭证字")
    @NotBlank(message = "凭证字不能为空")
    private String word;

    /** 显示标题 */
    @Excel(name = "显示标题")
    @NotBlank(message = "显示标题不能为空")
    private String printTitle;

    /** 是否默认 */
    @Excel(name = "是否默认")
    @NotNull(message = "是否默认不能为空")
    private Integer isDefault;

    /** 账套id */
    @Excel(name = "账套id")
    private Long accountSetsId;

    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private Integer isDeleted;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setWord(String word)
    {
        this.word = word;
    }

    public String getWord()
    {
        return word;
    }
    public void setPrintTitle(String printTitle)
    {
        this.printTitle = printTitle;
    }

    public String getPrintTitle()
    {
        return printTitle;
    }
    public void setIsDefault(Integer isDefault)
    {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault()
    {
        return isDefault;
    }
    public void setAccountSetsId(Long accountSetsId)
    {
        this.accountSetsId = accountSetsId;
    }

    public Long getAccountSetsId()
    {
        return accountSetsId;
    }
    public void setIsDeleted(Integer isDeleted)
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted()
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("word", getWord())
                .append("printTitle", getPrintTitle())
                .append("isDefault", getIsDefault())
                .append("accountSetsId", getAccountSetsId())
                .append("isDeleted", getIsDeleted())
                .toString();
    }
}
